#include <iostream>
#include "Light.h"

using namespace std;

void printCurrentState(Light light);

int main(void)
{
    Light light;

    cout << "/*********************** Program Start ***********************/" << endl;

    printCurrentState(light);

    light.toggle();
    printCurrentState(light);
    light.toggle();
    printCurrentState(light);
    light.toggle();
    printCurrentState(light);
    light.toggle();
    printCurrentState(light);

    return 0;
}

void printCurrentState(Light light)
{
    if(light.getCurrentState() == LightState::Off)
    {
        cout << "currentState: Light_Off" << endl;
    } else if(light.getCurrentState() == LightState::Low)
    {
        cout << "currentState: Light_Low" << endl;
    } else if(light.getCurrentState() == LightState::Medium)
    {
        cout << "currentState: Light_Mudium" << endl;
    } else if(light.getCurrentState() == LightState::High)
    {
        cout << "currentState: Light_High" << endl;
    } else {
        cout << "currentState: ERROR STATE!" << endl;
    }
}

